#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QProcess>
#include <QFileSystemModel>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    QProcess *myProcess = new QProcess;
    QFileSystemModel *model = new QFileSystemModel;
    QString CAT_Workspace = "";

private slots:
    void Config_Read();

    void Config_Write();

    void RunProcess(QString);

    void Process_Output();

    void Process_Error();

    void Process_Started();

    void Process_Finished(int, QProcess::ExitStatus);

    void trigerMenu(QAction *);

    void on_t_Debug_textChanged();

    void on_pButton_loadframe_clicked();

    void on_treeView_customContextMenuRequested(const QPoint &pos);

    void on_pButton_device_clicked();

    void on_pButton_clear_clicked();

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
